#include <iostream>
#include <cmath>
#include <iomanip>
#define PI 3.14159
using namespace std;
#define PRINT_VAR(var) cout << #var "= " << var << endl

int main()
{
    float r, h;
    scanf("%f %f", &r, &h);
    float circle_c = 2 * PI * r;
    float circle_s = PI * r * r;
    float ball_s = 4 * PI * r * r;
    float ball_v = 4. / 3. * PI * r * r * r;
    float cylinder_v = PI * r * r * h;
    float cone_v = 1. / 3. * PI * r * r * h;

    cout << fixed << setprecision(2);
    PRINT_VAR(circle_c);
    PRINT_VAR(circle_s);
    PRINT_VAR(ball_s);
    PRINT_VAR(ball_v);
    PRINT_VAR(cylinder_v);
    PRINT_VAR(cone_v);

    return 0;
}